import request from '@/utils/request'

// 获取订单列表
export function ROrderList(params = {}) {
  return request({
    url: '/api/v1/order/list',
    method: 'get',
    params
  })
}
// 获取订单详情
export function ROrderDetail(params = {}) {
  return request({
    url: '/api/v1/order/detail',
    method: 'get',
    params
  })
}
// 取消订单
export function orderCancel(params = {}) {
  return request({
    url: '/api/v1/order/cancel',
    method: 'put',
    params
  })
}
// 确认订单
export function orderConfirm(params = {}) {
  return request({
    url: '/api/v1/order/confirm',
    method: 'put',
    params
  })
}
// 订单发货
export function orderOut(params = {}) {
  return request({
    url: '/api/v1/order/warehouse/out',
    method: 'post',
    params
  })
}
